package net.slidinglive.utilities.util;

import java.util.ArrayList;
import java.util.List;

import net.slidinglive.utilities.R;
import net.slidinglive.utilities.fragment.AbstractFragment;
import net.slidinglive.utilities.fragment.ContactsFragment;
import net.slidinglive.utilities.fragment.MessageBackupFragment;
import net.slidinglive.utilities.fragment.OverviewFragment;
import android.content.Context;

/**
 * @author Sebastian Hoffmann <bo.hoffi@gmail.com>
 */
public class UtilitiesHelper {

    public static List<AbstractFragment> createPages(final Context context) {

        final List<AbstractFragment> pages = new ArrayList<AbstractFragment>();

        pages.add(new OverviewFragment(R.layout.fragment_overview, context.getResources().getString(
                R.string.fragment_title_overview)));
        pages.add(new MessageBackupFragment(R.layout.fragment_message_backup, context.getResources().getString(
                R.string.fragment_title_messages_backup)));
        pages.add(new ContactsFragment(R.layout.fragment_contacts, context.getResources().getString(
                R.string.fragment_title_contacts)));

        return pages;
    }
}